package com.sh.data.engine.application.model.dto.integration;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema
public class OfflineSyncPageResponse {

    /**
     * 主键
     */
    @Schema(title = "任务id", description = "空为新增 不空为保存")
    private Long id;

    /**
     * 任务名称
     */
    @Schema(description = "任务名称")
    private String taskName;

    /**
     * 来源数据源类型
     */
    @Schema(description = "来源")
    private String source;

    /**
     * 目标数据源类型
     */
    @Schema(description = "目标")
    private String target;

    @Schema(description = "任务状态，1-待发布 2-已发布")
    private int taskStatus;

    @Schema(description = "运行状态，3-未运行 4-运行中 5-成功 6-失败 7-停止")
    private int taskRunStatus;

    @Schema(description = "调度周期")
    private int scheduleUnit;

    @Schema(description = "开始时间")
    private Date startTime;

    @Schema(description = "结束时间")
    private Date endTime;

    @Schema(description = "发布时间")
    private Date publishTime;

    @Schema(description = "创建人")
    private String creator;

    @Schema(description = "周期数据")
    private String scheduleInfo;

}
